﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
namespace BUS
{
    public class Register_mailBUS
    {
        public static bool insertMail(REGISTER_MAIL _mMail)
        {
            try
            {
                if (Register_mailDAO.IsExisting(_mMail.EMAIL.Trim()))
                    return false;
                return Register_mailDAO.insertMail(_mMail);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static List<REGISTER_MAIL> GetAllRegister_mail()
        {
            try
            {
                return Register_mailDAO.GetAllRegister_mail();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
